<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>商品搜索</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>
<script language="javascript">
function submitForm(keyword,pagerMethod,currentPage){
	document.getElementById("keyword").value=keyword;
	document.getElementById("pagerMethod").value=pagerMethod;
	document.getElementById("currentPage").value=currentPage;
	document.form1.submit();
}
function submitForm1(keyword){
	document.getElementById("ct1").value=keyword;
	var ct1=document.getElementById("ct1").value;
	var ct2=document.getElementById("ct2").value;
	var ct3=document.getElementById("ct3").value;
	keyword=ct1+" "+ct2+" "+ct3;
	keyword=keyword.replace("  "," ");
	document.getElementById("keyword").value=keyword;
	document.form1.submit();
}
function submitForm2(keyword){
	document.getElementById("ct2").value=keyword;
	var ct1=document.getElementById("ct1").value;
	var ct2=document.getElementById("ct2").value;
	var ct3=document.getElementById("ct3").value;
	keyword=ct1+" "+ct2+" "+ct3;
	keyword=keyword.replace("  "," ");
	document.getElementById("keyword").value=keyword;
	document.form1.submit();
}
function submitForm3(keyword){
	document.getElementById("ct3").value=keyword;
	var ct1=document.getElementById("ct1").value;
	var ct2=document.getElementById("ct2").value;
	var ct3=document.getElementById("ct3").value;
	keyword=ct1+" "+ct2+" "+ct3;
	keyword=keyword.replace("  "," ");
	document.getElementById("keyword").value=keyword;
	document.form1.submit();
}
</script>
<#import "/WEB-INF/template/common/lib.ftl" as lib>
<body><h2>Digg55.com</h2>
<form id="form1" name="form1" method="get" action="searchMulti.html">
商品<input type="text" id="keyword" name="keyword" value="${keyword}"/> <input type="Submit" name="Submit" value="搜索" /> <a href="search.html">简易</a>
<input type="hidden" id="ct1" name="ct1" value="${ct1}" />
<input type="hidden" id="ct2" name="ct2" value="${ct2}" />
<input type="hidden" id="ct3" name="ct3" value="${ct3}" />
<input type="hidden" id="pagerMethod" name="pagerMethod" value="" />
<input type="hidden" id="currentPage" name="currentPage" value="${currentPage}" />
</form>

      品牌：<#if ct1=''>全部<#else><a onclick="javascript:submitForm1('');return false;" href="#">全部</a></#if> 
		<#if ct1='迪士尼'>迪士尼<#else><a onclick="javascript:submitForm1('迪士尼');return false;" href="#">迪士尼</a></#if> 
		<#if ct1='佐丹奴'>佐丹奴<#else><a onclick="javascript:submitForm1('佐丹奴');return false;" href="#">佐丹奴</a></#if> 
		<#if ct1='九牧王'>九牧王<#else><a onclick="javascript:submitForm1('九牧王');return false;" href="#">九牧王</a></#if>
		<br>
    类一：<#if ct2=''>全部<#else><a onclick="javascript:submitForm2('');return false;" href="#">全部</a></#if>
		<#if ct2='腰带'>腰带<#else><a onclick="javascript:submitForm2('腰带');return false;" href="#">腰带</a></#if> 
		<#if ct2='内衣'>内衣<#else><a onclick="javascript:submitForm2('内衣');return false;" href="#">内衣</a></#if>
		<#if ct2='背心'>背心<#else><a onclick="javascript:submitForm2('背心');return false;" href="#">背心</a></#if>
		<br>
    类二：<#if ct3=''>全部<#else><a onclick="javascript:submitForm3('');return false;" href="#">全部</a></#if>
		<#if ct3='男'>男<#else><a onclick="javascript:submitForm3('男');return false;" href="#">男</a></#if> 
		<#if ct3='女'>女<#else><a onclick="javascript:submitForm3('女');return false;" href="#">女</a></#if> 
		<#if ct3='儿童'>儿童<#else><a onclick="javascript:submitForm3('儿童');return false;" href="#">儿童</a></#if>
		<br>
		共找到${pager.totalRows}个结果,这花费了${useTime}毫秒!<hr>		
		<#if hits?? && hits.length()!=0>
		<@lib.pagingMulti pager.totalRows pager.currentPage pager.pageSize 10 keyword/><br>
		<#list pager.startRow..pager.endRow as i> 
			<strong>${hits.doc(i).get("name")}</strong><br>			
			 ${hits.doc(i).get("description")}<br>
			 详情：${hits.doc(i).get("additional_description")}<br>
			 <span class="s1">原价：￥${hits.doc(i).get("price")}</span><br>
			 现价：￥${hits.doc(i).get("sale_price")}<br><br>
		</#list>
		<@lib.pagingMulti pager.totalRows pager.currentPage pager.pageSize 10 keyword/><br>
		</#if>
powered by www.digg55.com
</body>
</html>
